package com.cskaoyan.bean.vo;


import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: lsy
 * @class: AdUpdateVo
 */
public class AdUpdateVo implements Serializable {
    @Override
    public String toString() {
        return "AdUpdateVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", link='" + link + '\'' +
                ", url='" + url + '\'' +
                ", position=" + position +
                ", content='" + content + '\'' +
                ", enabled=" + enabled +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", deleted=" + deleted +
                '}';
    }

    private static final long serialVersionUID = 7662629491199515765L;
    /**
     * id : 2
     * name : 活动 美食节1
     * link :
     * url : http://yanxuan.nosdn.127.net/bff2e49136fcef1fd829f5036e07f116.jpg
     * position : 1
     * content : 活动 美食节
     * enabled : true
     * addTime : 2018-02-01 00:00:00
     * updateTime : 2021-07-08 16:11:41
     * deleted : false
     */

    private int id;
    private String name;
    @NotBlank(message = "链接不能为空")
    private String link;
    private String url;
    private byte position;
    private String content;
    private boolean enabled;
    @DateTimeFormat(style = "yyyy-MM-dd")
    private Date addTime;
    @DateTimeFormat(style = "yyyy-MM-dd")
    private Date updateTime;
    private boolean deleted;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public byte getPosition() {
        return position;
    }

    public void setPosition(byte position) {
        this.position = position;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
